home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 5 / MacMania 5.toast / / Tools&Utilities / Plotfoil 3.2 / foil_lib.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-09  |  947 b   |  30 lines  |  [TEXT/MMCC]

  1.  
  2. /*
  3.  * Header file for data structures that describes airfoil section.
  4.  */
  5.  
  6. #define MAXPOINTS 150        /* max number of points allowed in data */
  7. #define TXTSIZ 150        /* size of text strings */
  8.  
  9. typedef struct {
  10.    double x, y;
  11. } point_t;
  12.  
  13. /*
  14.  * The structure that describes airfoil section data.
  15.  * All ordinates are in [0,1].
  16.  */
  17. typedef struct {
  18.    char title[TXTSIZ];        /* The name of the section */
  19.    int npoints;            /* Number of points */
  20.    point_t points[MAXPOINTS];    /* all the data points */
  21.    double miny, maxy;        /* vertical extents */
  22.    double thickness, th_loc;    /* max thickness and its location */
  23.    double camber, cam_loc;    /* max camber and its location */
  24. } airfoil_data_t;
  25.  
  26. extern int read_foil(FILE *fp, char *f, airfoil_data_t *info);
  27. extern void writefoil(FILE *fout, airfoil_data_t *foil, int, int);
  28. extern void get_otherside(point_t *new, point_t *old, int n);
  29. extern void fill_in(point_t *others, int n1, point_t *pts, int n2);
  30.